package com.example.springboot.mapper;


import com.example.springboot.pojo.Equipment;
import com.example.springboot.pojo.WorkOrder;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;
@Component
@Mapper
public interface EquipmentDao {
    void addEquipment(Equipment equipment);
    Equipment queryById(int id);
    void deleteById(int id);
    List<Equipment> getEquipmentList();
    void updateById(Equipment equipment);
    List<Equipment> getEquipmentListByCondition(Map<String,String> map);
    List<WorkOrder> getWorkOrderListById(int id);
}
